package com.ciwong.epaper.event;

import com.ciwong.libs.utils.volley.AsyncDownload;
import com.ciwong.epaper.util.download.DownLoadInfo;

/**
 * 用过产生EventBus数据类型 Created by res-mingyang on 2015/4/30.
 */
public class EventBusFactory
{
    /**
     * 网络连接事件
     */
    public static class DownloadEvent extends BaseEvent
    {
        private DownLoadInfo info;

        private AsyncDownload.DownloadTask task;

        public DownloadEvent(DownLoadInfo info, AsyncDownload.DownloadTask task)
        {
            this.info = info;
            this.task = task;
        }

        public DownLoadInfo getInfo()
        {
            return info;
        }

        public void setInfo(DownLoadInfo info)
        {
            this.info = info;
        }

        public AsyncDownload.DownloadTask getTask()
        {
            return task;
        }

        public void setTask(AsyncDownload.DownloadTask task)
        {
            this.task = task;
        }
    }
}
